package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_template;

import cn.com.api.mapper.ApiU_templateMapper;

import cn.com.api.service.ApiU_templateService;

/**
 * 
 **/
@Service
public class U_templateServiceImplBase {
	@Autowired
	private ApiU_templateMapper apiU_templateMapper;
    
    // 根据id获取
	public ApiU_template findU_templateById(Integer id){
		ApiU_template u_template = apiU_templateMapper.findU_templateById( id );
		return u_template;
	}
    
    //查看数据集
	public List<ApiU_template> findU_templates(){
        List<ApiU_template> u_templates = apiU_templateMapper.findU_templates();
		return u_templates;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_templatesByMap(HashMap condition){
        List<Map<String, Object>> u_templates = apiU_templateMapper.findU_templatesByMap(condition);
		return u_templates;
    }
    
	// 添加
	public int insertU_template(ApiU_template u_template){
		int ret_I= apiU_templateMapper.insertU_template(u_template);
		return ret_I;
	}

	// 修改
	public int updateU_template(ApiU_template u_template){
		int ret_I= apiU_templateMapper.updateU_template(u_template);
		return ret_I;
	}
	
    // 删除
	public int deleteU_template(Integer id){
		int ret_I= apiU_templateMapper.deleteU_template( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


